﻿using MES.Core.Model;
using System.ComponentModel.DataAnnotations;

namespace MES.Service.Generate.Dto
{

    public class GenerateModelInput
    {
        /// <summary>
        /// 表名称(实体名称)
        /// </summary>
        [Required(ErrorMessage = "表名称必填")]
        public string TableName { get; set; }

        /// <summary>
        /// 表注释
        /// </summary>
        [Required(ErrorMessage = "表注释必填")]
        public string TableNameComment { get; set; }

        /// <summary>
        /// 字段
        /// </summary>
        [Required(ErrorMessage = "字段必填")]
        public List<GenerateKey> GenerateKeys { get; set; }

        /// <summary>
        /// 文件绝对路径
        /// </summary>
        [Required(ErrorMessage = "文件绝对路径必填")]
        public string FilePath { get; set; }

        /// <summary>
        /// 命名空间
        /// </summary>
        [Required(ErrorMessage = "命名空间必填")]
        public string Namespace { get; set; }
    }

}
